For each directory argument, _llll_ssss lists the contents of the directory; for
each file argument, _llll_ssss repeats its name and any other information
requested. The output is sorted alphabetically by default. When
arguments are not given, the current directory is listed. When several
arguments are given, the arguments are first sorted appropriately, but
file arguments appear before directories and their contents. _llll_ssss
processes supplementary code set characters according to the locale
specified in the _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE and _LLLL_CCCC______CCCC_OOOO_LLLL_LLLL_AAAA_TTTT_EEEE environment variables [see _LLLL_AAAA_NNNN_GGGG
on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)], except as noted under the _----_bbbb and _----_qqqq options below.
There are three major listing formats. The default format for output
directed to a terminal is multi-column with entries sorted down the
columns. The options _----_CCCC and _----_xxxx enable multi-column formats; and the _----_mmmm
option enables stream output format, in which files are listed across the
page, separated by commas.
To determine output formats for the _----_CCCC, _----_xxxx, and _----_mmmm options, _llll_ssss uses an
environment variable, _CCCC_OOOO_LLLL_UUUU_MMMM_NNNN_SSSS, to determine the number of positions
available on one output line. If this variable is not set, and the
output is directed to a terminal, the number of positions is obtained
from the terminal device. If this information cannot be obtained, 80
columns are assumed.
The _llll_ssss command has the following options:
_----_RRRR Recursively list subdirectories encountered.
_----_aaaa List all entries, including those that begin with a period (_....),
which are normally not listed.
_----_AAAA Like _----_aaaa except it does not list the . and .. directories.
_----_dddd If an argument is a directory, list only its name (not its
contents); often used with _----_llll to get the status of a directory.
_----_LLLL When listing status, if an argument is a symbolic link, list the
status of the file or directory referenced by the link rather than
that of the link itself. This option will have no effect if the
argument is a dangling link.
_----_HHHH If the file is a symbolic link, list the file itself. This is the
default behavior, except for a symbolic link to a directory in the
absence of the _----_llll option, in which case the _----_LLLL behavior is used by
default. _----_HHHH and _----_LLLL cancel one another in command line order.
PPPPaaaaggggeeee 1111
llllssss((((1111)))) llllssss((((1111))))
_----_CCCC Multi-column output with entries sorted down the columns. This is
the default output format.
_----_xxxx Multi-column output with entries sorted across rather than down the
page.
_----_mmmm Stream output format; files are listed across the page, separated by
commas.
_----_llll List in long format, giving mode, number of links, owner, group,
size in bytes, and time of last modification for each file (see
below). If the file has an Access Control List (ACL) the mode
specification will be followed by a ``_++++''. If the file is
a special file, the size field contains the major and minor device
numbers rather than a size. If the file is a symbolic link, the
filename is printed followed by ``_----_>>>>'' and the pathname of the
referenced file.
_----_nnnn The same as _----_llll, except that the owner's _UUUU_IIII_DDDD and group's _GGGG_IIII_DDDD numbers
are printed, rather than the associated character strings.
_----_oooo The same as _----_llll, except that the group is not printed.
_----_gggg The same as _----_llll, except that the owner is not printed.
_----_hhhh When file sizes are printed, print them in a format that is easier
to read for large files. The size will consist of the number of
units followed by a unit specifier ('b' for bytes, 'K' for
kilobytes, 'M' for megabytes, 'G' for gigabytes, etc.)
_----_rrrr Reverse the order of sort to get reverse alphabetic or oldest first
as appropriate.
_----_tttt Sort by time stamp (latest first) instead of by name. The default
is the last modification time. (See _----_uuuu and _----_cccc.)
_----_uuuu Use time of last access instead of last modification for sorting
(with the _----_tttt option) or printing (with the _----_llll option).
_----_cccc Use time of last modification of the i-node (file created, mode
changed, and so on) for sorting (_----_tttt) or printing (_----_llll).
_----_pppp Put a slash (_////) after each filename if the file is a directory.
_----_FFFF Put a slash (_////) after each filename if the file is a directory, an
asterisk (_****) if the file is executable, an equal sign (_====) if the
file is an AF_UNIX address family socket, and an ampersand (_@@@@) if
the file is a symbolic link. Unless the _----_HHHH option is also used,
symbolic links are followed to see if they might be a directory; see
above.
PPPPaaaaggggeeee 2222
llllssss((((1111)))) llllssss((((1111))))
_----_bbbb Force printing of non-printable characters to be in the octal _\\\\_d_d_d
notation. All multibyte characters are considered printable.
_----_qqqq Force printing of non-printable characters in file names as the
character question mark (_????). All multibyte characters are
considered printable.
_----_iiii For each file, print the i-node number in the first column of the
report.
_----_ssss Give size in blocks, including indirect blocks, for each entry.
Holes in files are not included in the size. A ``block'' is 512
bytes.
_----_SSSS Show the canonical device name associated with a special file, if it
can be determined.
_----_ffff Force each argument to be interpreted as a directory and list the
name found in each slot. This option turns off _----_llll, _----_tttt, _----_ssss, and _----_rrrr,
and turns on _----_aaaa; the order is the order in which entries appear in
the directory.
_----_1111 Print one entry per line of output.
_----_MMMM Print the mandatory access control ( MAC ) label of each entry,
enclosed in square brackets. The _----_MMMM option may be set automatically
by setting the environment variable LABELFLAG to the (case
insensitive) string "on", other values have no effect. If MAC is
not enabled, the square brackets will be empty.
_----_DDDD Print the Access Control List ( ACL ) for the entry as an _aaaa_cccc_llll(4)
string enclosed in square brackets. If the ACL is empty or support
for ACLs is not installed, the square brackets will be empty.
_----_PPPP Print the capabilities for the entry as a _cccc_aaaa_pppp_aaaa_bbbb_iiii_llll_iiii_tttt_iiii_eeee_ssss(4) string
enclosed in square brackets.
If MAC, ACL, and capabilities are all requested (-DMP in any order), the
entries are displayed in the order MAC, capabilities, ACL.
Specifying more than one of the options in the following mutually
exclusive pairs is not considered an error: _----_CCCC and _----_llll(ell), _----_mmmm and
_----_llll(ell), _----_xxxx and _----_llll(ell), _----_CCCC and _----_1111(one), _----_cccc and _----_uuuu. The last option
specified in each pair determines the output format.
The mode printed under the _----_llll option consists of eleven possible
characters. The first character may be one of the following:
_dddd if the entry is a directory;
_llll if the entry is a symbolic link;
PPPPaaaaggggeeee 3333
llllssss((((1111)))) llllssss((((1111))))
_bbbb if the entry is a block special file;
_cccc if the entry is a character special file;
_ssss if the entry is a _XXXX_EEEE_NNNN_IIII_XXXX semaphore;
_mmmm if the entry is a _XXXX_EEEE_NNNN_IIII_XXXX shared data (memory);
_pppp if the entry is a fifo (named pipe) special file;
_SSSS if the entry is an AF_UNIX address family socket;
_---- if the entry is a regular file.
The next 9 characters are interpreted as three sets of three bits each.
The first set refers to the owner's permissions; the next to permissions
of others in the user-group of the file; and the last to all others.
Within each set, the three characters indicate permission to read, write,
and execute the file as a program, respectively. For a directory,
``execute'' permission is interpreted to mean permission to search the
directory for a specified file.
_llll_ssss _----_llll (the long list) prints its output as follows: